package com.jike.shop.cloud;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jike.shop.cloud.dto.goods.GoodsDetailDto;
import com.jike.shop.cloud.dto.goods.GoodsInfoDto;
import com.jike.shop.cloud.model.goods.GoodsInfo;
import com.jike.shop.cloud.req.GoodsListReq;
import com.jike.shop.cloud.req.LockStockReq;
import com.jike.shop.cloud.req.UnlockStockReq;

public interface IGoodService extends IService<GoodsInfo> {
    void lockStock(LockStockReq req);

    void unlockStock(UnlockStockReq req);

    void checkLockStock();

    IPage<GoodsInfoDto> getList(GoodsListReq req);

    GoodsDetailDto detail(Long goodsId);
}
